﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ModelLibrary;
using System.Text.RegularExpressions;

namespace WebC
{
    public partial class DevPartSelect11 : clsBaseForm
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            loadInfo();
        }

        public string removeHTMLCode(string sCode)
        {

            Regex reg = new Regex("<INPUT[^>]*>");
            sCode = reg.Replace(sCode, "");
            sCode = sCode.Replace("\r", "").Replace("\r", "");
            return sCode;
        }

        public void loadInfo()
        {
            string sTypes = Convert.ToString(Request["types"]);
            string sSelectTypes = Convert.ToString(Request["selects"]);
            clsSys clss = null;
            DataTable dt = null;
            try
            {
                clss = new clsSys();
                dt = clss.getCompanySelect(sTypes, sSelectTypes);
            }
            catch (Exception e)
            {
                errorUrl(Convert.ToString(e));
            }
            finally
            {
                if (clss != null)
                {
                    clss.Dispose();
                }
            }
            if (dt != null)
            {
                rpttblInfo.DataSource = dt;
                rpttblInfo.DataBind();
            }
        }
    }
}